﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCEntity.TMS.InsuredConfig
{
    /// <summary>
    /// 保价配置
    /// </summary>
    public class InsuredConfigEntity
    {
        /// <summary>
        /// 保价配置Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int InsuredConfigId { get; set; }

        /// <summary>
        /// 保价类型(普通、高额)
        /// </summary>
        public string InsuredType { get; set; }

        /// <summary>
        /// 保价类型
        /// </summary>
        public string InsuredTypeStr { get; set; }

        /// <summary>
        /// 车辆运输业务配置
        /// </summary>
        public int VehicleTransportBusinessConfigId { get; set; }

        /// <summary>
        /// 最小金额
        /// </summary>
        public decimal MinAmount { get; set; }

        /// <summary>
        /// 最大金额
        /// </summary>
        public decimal MaxAmount { get; set; }

        /// <summary>
        /// 保价费率
        /// </summary>
        public decimal InsuredFeeRatio { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public long CreateAdminId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateAdminName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 修改人Id
        /// </summary>
        public long? EditAdminId { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string EditAdminName { get; set; }
    }
}
